#ifndef _NETIO_H
#define _NETIO_H

#include "buffer.h"
#include "appsession.h"

typedef int (*protocol_decodec)(AppSession *session, struct buffer *buff);
typedef int (*protocol_encodec)(AppSession *session, void *msg);

struct _netio {

	protocol_decodec decode;
	protocol_encodec encode;

};
typedef struct _netio NetIO;
#endif
